package com.hcj.util;

import java.util.HashMap;

/**
 * 前端返回值类
 */
public class MyResponse extends HashMap<String,Object> {
    public MyResponse(String code,Object msg){
        super();
        this.put("code",code);
        this.put("msg",msg);
    }
    public void setIsOk(String b){
        this.put("code",b);
    }

    public MyResponse() {
        super();
    }

    public void setMsg(boolean msg){
        this.put("msg",msg);
    }
}
